pyinstaller --noconsole --hidden-import=pillow --hidden-import=PySide6.QtCore --hidden-import=PySide6.QtGui --hidden-import=PySide6.QtWidgets  --hidden-import=PySide6 --icon=icon.ico --onefile mainwindow.py